#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	char arr[100] = { 0 };
	gets(arr);
	
	int left = 0;
	int right = strlen(arr)-1;
	while (left < right)
	{
		char t = 0;
		t = arr[left];
		arr[left] = arr[right];
		arr[right] = t;
		left++;
		right--;
		
	}
	printf("%s", arr);
	return 0;
}